<?php

class Opinion extends AppModel {

    public $label = 'Opiniones';
    public $useTable = 'opiniones';
    public $validate = array(
        'titulo' => array(
            'required' => array(
                'rule' => array('notEmpty'),
                'message' => 'El titulo es requerido'
            )
        ),
        'autor' => array(
            'required' => array(
                'rule' => array('notEmpty'),
                'message' => 'El autor es requerido'
            )
        ),
        'cuerpo' => array(
            'required' => array(
                'rule' => array('notEmpty'),
                'message' => 'El cuerpo de la noticia es requerido'
            )
        )
    );

}